/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package mamayukero.problem.environment.component;

public class Product {
    public String name;     //nama produk
    public int price;       //harga satuan
    
    public Product(String name, int price) {
        this.name = name;
        this.price = price;
    }
    
    public Product(Product p) {
        this.name = p.name;
        this.price = p.price;
    }
    
    @Override
    public String toString() {
        return "[P] '" + name +"' (" + price + ")";
    }
}
